/**
 * @filename:SubCourseDao Course
 * @project constract  V1.0
 * Copyright(c) 2018 gong Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.repository;

import java.util.List;

import com.znufe.exam.domain.subcourse.SubCourseResponseObject;
import com.znufe.exam.viewmodel.admin.subCourse.SubCoursePageRequestVm;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import com.znufe.exam.domain.SubCourse;

/**   
 *  
 * @Description:  课程表——DAO
 * @Author:       gong   
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Mapper
public interface SubCourseMapper extends BaseMapper<SubCourse>{

    @Override
	SubCourse selectByPrimaryKey(Integer id);

    @Override
	int deleteByPrimaryKey(Integer id);

    @Override
	int insertSelective(SubCourse subCourse);

	@Override
	int updateByPrimaryKeySelective(SubCourse subCourse);
	
	List<SubCourse> querySubCourseList(SubCourse subCourse);

	List<Integer> getAllLecturerId(List<Integer> ids);

    /**
     * 分页展示视频信息
     * @param requestVm
     * @return
     */
	List<SubCourseResponseObject> subCoursePage(SubCoursePageRequestVm requestVm);

    /**
     * 根据名称查找视频
     * @param subCourseName
     * @return
     */
	SubCourse selectSubCourseByName(String subCourseName);

	List<SubCourse> getAllVideo();

	List<SubCourse> getSubCourseByIds(List<Integer> subCourseIds);
}
